package com.presto.directo.mvvm.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.presto.directo.R
import com.presto.directo.entity.BankEntity

class BankListAdapter(layoutResId: Int) : BaseQuickAdapter<BankEntity, BaseViewHolder>(layoutResId) {
    override fun convert(holder: BaseViewHolder, item: BankEntity) {
        holder.setText(R.id.tv_bank, item.bank_name)
        holder.setGone(R.id.view_divider, itemCount - 1 == holder.layoutPosition)
    }
}